/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Modelo;

import Vista.GUI_Calibracion;
import Modelo.Idiomas.LocaleManager;
import java.awt.Component;
import javax.swing.JOptionPane;

/**
 * Clase de vista que contiene notificaciones de tipo Alerta de proposito
 * general.
 * @author User
 */
public class Alertas {


    public Alertas() {
    }

    public static void muestraProblema(String message, Object a) {
        JOptionPane.showMessageDialog((Component) a, message,
                LocaleManager.getMessage("alertaInfo"), JOptionPane.INFORMATION_MESSAGE,
                null);
    }

    public static void exitoCargarRuta(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaRutaCargada"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.INFORMATION_MESSAGE,
                null);
    }

    public static void falloCargarRuta(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaRutaNoCargada"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.ERROR_MESSAGE,
                null);
    }

    public static void exitoCargarMapa(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaMapaCargado"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.INFORMATION_MESSAGE,
                null);
    }

    public static void exitoCalibracion(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaMapaCalibrado"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.INFORMATION_MESSAGE,
                null);
    }

    public static void falloCalibracionRango(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaCalibracionRango"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.ERROR_MESSAGE,
                null);
    }

    public static void falloCalibracionTXT(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaCalibracionTXT"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.ERROR_MESSAGE,
                null);
    }

    public static void falloCalibracionDistancia(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaCalibracionDistancia"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.ERROR_MESSAGE,
                null);
    }

    public static void exitoGuardarRuta(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaRutaGuardada"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.INFORMATION_MESSAGE,
                null);
    }

    public static void falloDatosCalibracion(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaDatosCalibracion"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.ERROR_MESSAGE,
                null);
    }

    public static void errorPuertoSerie(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaPuertoCom"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.ERROR_MESSAGE,
                null);
    }

    public static void errorCargarImagen(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaErrorCargarImagen"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.ERROR_MESSAGE,
                null);
    }

    public static void falloGuardarRuta(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaRutaNoGuardada"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.INFORMATION_MESSAGE,
                null);
    }

    public static void errorConexion(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaConexionInternet"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.ERROR_MESSAGE,
                null);
    }

    public static void timeOut(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaTimeoutCoordenadas"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.ERROR_MESSAGE,
                null);
    }

    public static void poiRepetido(Object a) {
        JOptionPane.showMessageDialog((Component) a, LocaleManager.getMessage("alertaPoiRepetido"),
                LocaleManager.getMessage("alertaInfo"), JOptionPane.ERROR_MESSAGE,
                null);
    }
}
